﻿using System;
using System.Collections;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Threading;

namespace MefTZAddin
{
	/// <summary>
	/// Interaction logic for Window1.xaml
	/// </summary>
    public partial class TZUserControl : UserControl
	{
		public TZUserControl()
		{
			InitializeComponent();
		}

        void DispatchRequired()
        {
            Dispatcher.Invoke(DispatcherPriority.Normal, (Action)(() =>
            {
            }));  
        }

		private bool SetError(Control control, string msg)
		{
			MessageBox.Show(msg, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
			control.Focus();
			return false;
		}
	}

}
